#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int arr[10] = { 1,1,2,2,3,3,4,4,1,6 };
	int n = 10;
	int i = 0;
	for (i = 0; i < n; i++)
	{
		int j = i;
		while (j<n-1)
		{
			if (arr[i] == arr[j + 1])
			{
				int k = j;
-				while (k < n-1)
				{
					arr[k+1] = arr[k + 2];
					k++;
				}
				n--;
				j--;
			}
			j++;
		}
	}
	for (i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}